<?php
	
	if (!empty($_GET['keys'])) {
		$keys=$_GET['keys'];
		// echo $keys;die;
		$active=selectone('active',"keys_id='$keys'");
		// print_r($active);die;
// echo time();
// echo '<br>';

//  print_r($active['cookie_time']);die;


		if(time()<$active['cookie_time']){
			$row=edxit('menber',$active['menber_id'],array('active'=>1));
				if($row>0){
 
					echo '<script>alert("激活成功"); location.href="https://localhost/cms/index.php?c=index&a=index";</script>';die;
				}
				}else{echo '<script>alert("当前链接已失效请重新链接，已重新将激活信息发送至您的邮箱当中，请及时处理"); </script>';die;

					}

			}else{  
			echo '<script>alert("非法操作"); location.href="https://localhost/cms/index.php?c=index&a=index";</script>';die;


				}

 include VIEW_PATH.$admin.'layout.html';